/*
 * Context.java
 *
 * Created on Aug 16, 2007, 12:32:37 PM
 *
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.avid.context;

import java.io.File;
import java.util.List;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import test.jaxb.Collection;
import test.jaxb.CollectionType;

/**
 *
 * @author Administrator
 */
public class Context {

    public Context() throws JAXBException {
        JAXBContext jc = JAXBContext.newInstance("test.jaxb");
        Unmarshaller unmarshaller = jc.createUnmarshaller();
        
        Collection collection= (Collection)
    unmarshaller.unmarshal(new File( "books.xml"));

//        CollectionType.BooksType booksType = collection.getBooks();
//List bookList = booksType.getBook();

    }
    public static void main (String [] args) throws JAXBException {
        Context ct = new Context();
        
    }
}
